package com.ctgu.fcftsystem.service;

import com.ctgu.fcftsystem.dao.RevenueDao;
import com.ctgu.fcftsystem.pojo.Income;
import com.ctgu.fcftsystem.pojo.Revenue;
import com.ctgu.fcftsystem.pojo.Securities;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;
import java.util.List;
@Service
@Transactional
public class RevenueServiceImpl implements  RevenueService{
    @Autowired
    private RevenueDao revenueDao;



    /**
     * 根据时间查询收入
     * @param revenueDate
     * @return
     */
    @Override
    public List<Revenue> searchRevenueByDate(Date revenueDate) {
        return revenueDao.searchRevenueByDate(revenueDate);
    }
    /**
     * 根据类型对收入记录进行查询
     * @param revenueType
     * @return
     */
    @Override
    public List<Revenue> searchRevenueByType(Integer revenueType) {
        return revenueDao.searchRevenueByType(revenueType);
    }
}
